<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>登录</title>
		 <script src="/Public/Home/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
      <script type="text/javascript" src="/Public/Home/js/layer/layer.js" ></script>
      <script type="text/javascript" src="/Public/Home/js/layer/tanchu.js" ></script>
     
		<link rel="stylesheet" type="text/css" href="/Public/Home/css/login.css"/>
	</head>
	<body>
		<div id="append"></div>
		<div class="full_sc">
			<div class="head_cent head_cwo ClearFix">
				<div class="h_logo">
					<a href="">
						<img src="/Public/Home/image/logo.jpg"/>
					</a>
				</div>
				<div class="h_right">
					<img src="/Public/Home/image/top_center.jpg"/>
				</div>
			</div>
		</div>
		<div class="w980 ClearFix">
			<div class="logo_box ClearFix">
				<div class="login_b_l ClearFix">
					<a href="" title="日光生活">
						<img style="width: 560px;height: 360px;" src="/Public/Home/image/logo_img.jpg" alt="日光生活"/>
					</a>
				</div>
				<div class="login_b_r ClearFix">
					<div class="loginul ClearFix">
						<div class="login_h2 ClearFix">
							<h2>登录快乐购</h2>
							<div class="lognrtop">
								还没有快乐购账号<a href="regist">快速注册</a>
							</div>
						</div
						<div class="co">
							<div class="from">
								<form id="formm" action="" method="post">
									<div class="item">
									<input class="itxt" name="username" placeholder="用户名" value="" >
									    <div class="err_box">
                                            <div class="err_msg2" style="display: none;">登录名可能是您的手机号、邮箱或用户名
                                            </div>
                                        </div>
									</div>
									<div class="item">
                                        <input class="itxt" placeholder="请输入密码" name="password" id="password" type="password">
                                        <div class="err_box">
                                            <div class="err_msg2" style="display: none;">您的密码可能为字母、数字或符号的组合</div>
                                        </div>
									</div>
									<div class="item">
										<input placeholder="验证码" autocomplete="off" maxlength="4" size="10" name="chkcode" class="itxt itxt_yzm onfocustxt" tabindex="3" type="text">
                                        <img style="cursor:pointer;" onclick="this.src='<?php echo U('chkcode'); ?>#'+Math.random();" src="<?php echo U('chkcode'); ?>" />
                                        <div class="err_box">

                                            <div class="err_msg2" style="display: none;" id="error_captcha">请输入右侧验证码，不区分大小写</div>
                                        </div>
									</div>
									<div class="item item4">
										<div class="safe ClearFix">
                                            <span>
                                            <input tabindex="4" class="jdcheckbox" name="autoLogin" id="autoLogin" checked="checked" type="checkbox">
                                            <label for="autoLogin">记住用户名</label>
                                            </span>
                                            <span class="forget-pw-safe">
                                                <a target="_blank" class="" href="">忘记密码？</a>
                                            </span>
										</div>
									</div>
									<div class="item">
										<div class="login-btn">
                                            <input id="sub" type="button" value="立即登陆" style="width:300px;height:50px;background-color:#E70012;font-size:20px;" />
                                       </div>
									</div>
								</form>
							</div>
							<div class="container">
								<h5>您可以使用以下账号登录</h5>
								<ul>
									<li>
									<a class="li_q" title="QQ" onclick='window.open("/qqlogin/oauth/qq_login.php","TencentLogin","width=450,height=320,menubar=0,scrollbars=1, resizable=1,status=1,titlebar=0,toolbar=0,location=1");' href="javascript:void(0);"><span></span></a>
									</li>
									<li>
										<a class="li_w" href="" title="微博"></a>
									</li>
									<li>
										<a class="li_z" href="" title="支付宝"></a>
									</li>
									<li>
										<a class="li_t" href="" title="淘宝"></a>
									</li>
								</ul>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>
<script>
$('#sub').click(function(){
	var data=$('#formm').serializeArray();
	$.post('<?php echo U('Home/Member/login');?>',data,function(res){
        if (res.status==1) {
            tanchu.success(res.message,res.data);
        }else if(res.status==0){
            tanchu.error(res.message);
        }
   },'JSON');
});
</script>

</html>